<?php

namespace app\api\controller\shop;

use app\api\model\shop\ShopMessageModel;
use app\api\model\shop\ShopModel;
use app\common\controller\Api;

class Shop extends Api
{
    protected $noNeedRight = ['*'];
    protected $noNeedLogin = ['list'];

    /**
     * Notes: 店铺列表
     * User: AerYYY
     * Date: 6/28/25
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function list()
    {
        $shopModel = new ShopMessageModel();
        $res = $shopModel->list();
        if ($res === false) {
            $this->error($shopModel->getError());
        }
        $this->success('success', $res);
    }


}